package com.example.chatroom.service;

import com.example.chatroom.common.pojo.CommonResult;
import com.example.chatroom.controller.result.SessionListResult;
import com.example.chatroom.service.dto.SessionListDTO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface ISessionService {

    List<SessionListDTO> getSessionList(HttpServletRequest request);

    /**
     * 添加一个会话
     * @param toUserId 对方用户Id
     * @return
     */
    Long addSession(Long toUserId,String content);
}
